package com.koron.system.staff.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.annocation.FillField;
import com.koron.bean.base.BaseQueryBean;
import com.koron.system.staff.bean.dto.OrgDepartmentDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ClassName UnifyStaffBean
 * @description
 * @Author zhouj
 * @Date 2021/7/8 15:17
 */
@Data
public class UnifyStaffBean extends BaseQueryBean {

    @FillField
    @ApiModelProperty(value = "人员id")
    private String id;

    @ApiModelProperty(value = "人员名称")
    private String name;

    @ApiModelProperty(value = "简称")
    private String shortName;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "登录名")
    private String loginName;

    @ApiModelProperty(value = "组织编码")
    private String orgNodeCode;

    @ApiModelProperty(value = "组织名称")
    private String orgNodeName;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String eamil;

    @ApiModelProperty(value = "邮箱in")
    private String emailIn;

    @ApiModelProperty(value = "邮箱out")
    private String emailOut;

    @ApiModelProperty(value = "性别")
    private String sex; //1男2女

    @ApiModelProperty(value = "状态")
    private String status;//1启用0停用

    @FillField
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "父级组织id")
    private String parentId;

    @ApiModelProperty(value = "组织idList")
    private List<String> orgIdList;

    @ApiModelProperty(value = "组织dto")
    private List<OrgDepartmentDto> orgDepartments;

}
